<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let regexp=/abc/;
        console.log(regexp.test("abc"))  //text方法检查字符串是否符合正则表达式要求的规范
    </script>
</body>
</html>